package com.neu.envprotection.airQuality.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author ${author}
 * @date 2024/06/07
 */
@TableName("air_quality")
public class AirQuality implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * SO2浓度
     */
    private Float so2Concentration;

    /**
     * CO浓度
     */
    private Float coConcentration;

    /**
     * PM2.5浓度
     */
    private Float pm25Concentration;

    /**
     * 逻辑删除 1可见 0 不可见
     */
    private Integer isDelete;

    /**
     * 反馈的id
     */
    private Integer feedbackId;

    /**
     * 网格员的id
     */
    private Integer userId;

    /**
     * 网格员具体测出来的评级
     */
    private Integer realRankId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Float getSo2Concentration() {
        return so2Concentration;
    }

    public void setSo2Concentration(Float so2Concentration) {
        this.so2Concentration = so2Concentration;
    }

    public Float getCoConcentration() {
        return coConcentration;
    }

    public void setCoConcentration(Float coConcentration) {
        this.coConcentration = coConcentration;
    }

    public Float getPm25Concentration() {
        return pm25Concentration;
    }

    public void setPm25Concentration(Float pm25Concentration) {
        this.pm25Concentration = pm25Concentration;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getFeedbackId() {
        return feedbackId;
    }

    public void setFeedbackId(Integer feedbackId) {
        this.feedbackId = feedbackId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRealRankId() {
        return realRankId;
    }

    public void setRealRankId(Integer realRankId) {
        this.realRankId = realRankId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "AirQuality{" +
                "id=" + id +
                ", so2Concentration=" + so2Concentration +
                ", coConcentration=" + coConcentration +
                ", pm25Concentration=" + pm25Concentration +
                ", isDelete=" + isDelete +
                ", feedbackId=" + feedbackId +
                ", userId=" + userId +
                ", realRankId=" + realRankId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
